home *** CD-ROM | disk | FTP | other *** search
- Path: stern.fokus.gmd.de!news
- From: Watson <sayegh@fokus.gmd.de>
- Newsgroups: comp.lang.c,comp.unix.programmer,comp.databases
- Subject: Re: Aligning struct fields with NDBM (was: Casting unsigned short ...)
- Date: Tue, 09 Jan 1996 13:40:56 +0100
- Organization: GMD FOKUS - Research Institute for Open Communication Systems
- Message-ID: <30F26258.4624@fokus.gmd.de>
- References: <simmons.820857453@rzdspc1> <simmons.821116795@rzdspc1> <821142071snz@genesis.demon.co.uk> <simmons.821184377@rzdspc1>
- NNTP-Posting-Host: pollux.fokus.gmd.de
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 2.0b4 (X11; I; SunOS 5.4 sun4m)
-
- Geoffrey Simmons wrote:
-
- > While I'm here, do you know of a good way to use the debugger to get at the
- > bottom of a problem like this (alignment errors, and possibly memory leaks)?
- > I struggled with this mainly because the debugger (GNU GDB 4.15.1) could
- > do everything that the running program couldn't do, so Usenet became my
- > only hope.
-
- You may try the gcc compiler option -Wcast-align (if you're
- using gcc). This displayed message is something like
-
- 'casting causes alignment increase'
-
- or something like that.
- --
- * Greetinx,
- Watson (sayegh@fokus.gmd.de)
- more personal details at:
- http://www.fokus.gmd.de/ovma/employees/sayegh/entry.html
-